<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head><title>Главная</title>

    <script type="text/javascript" src="<c:out value="${root}"/>/js/jquery.js"></script>

    <script type="text/javascript" src="<c:out value="${root}"/>/js/ibox/ibox.js"></script>
    <script type="text/javascript">
        iBox.padding = 50;
        iBox.inherit_frames = false;
    </script>
    <style type="text/css">
        <!--
        #img_container {
            height: 120px;
        }

        #img_container ul {
            display: block;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        #img_container ul li {
            float: left;
            width: 100px;
            margin: 10px;
        }

        #img_container ul li a img {
            width: 80px;
            height: 80px;
            border: 1px solid #574331;
            padding: 5px;
            background: #eee;
        }

        #img_container ul li a:hover img {
            border-color: darkred;
        }



        -->
    </style>


</head>
<body background="<c:out value="${root}"/>/img/bg.png" style="background-repeat:repeat; margin-top:0 ;">
<table align="center" border="2" cellspacing="0">

    <%@include file="/WEB-INF/inc/header.jsp" %>
    <tr bgcolor="#ffffff">

        <td> TOP 5</td>
        <c:forEach items="${top5}" var="gr">
            <td>
                <img height="40" src="<c:out value="${root}"/>/userimg/<c:out value="${gr[3]}"/>" alt="">
            </td>
            <td>
                <a href="user?id=<c:out value="${gr[0]}"/>">
                    <c:out value="${gr[1]}"/>
                    <br>
                    <c:out value="${gr[2]}"/>
                </a>

            </td>

        </c:forEach>

    </tr>


    <tr bgcolor="#ffffff">
        <td colspan="11" valign="top" style="padding: 40px">

            <br>
            <br>
            <table border="2">

                <tr>
                    <td>


                        <a href="<c:out value="${root}"/>/userimg/<c:out value="${info.imgurl}"/>" rel="ibox">
                            <img width="200"
                                 src="<c:out value="${root}"/>/userimg/<c:out value="${info.imgurl}"/>"
                                 alt=""> </a>

                    </td>
                    <td>
                        <table border="2">
                            <tr>
                                <a href="setting">
                                    <FONT color="#DCDCDC"> Редактировать </FONT>
                                </a>
                            </tr>
                            <tr>


                                <td>
                                    Фамилия:
                                </td>
                                <td>
                                    <c:out value="${info.fname}"/>
                                </td>
                            </tr>
                            <tr>

                                <td>
                                    Имя:
                                </td>
                                <td>
                                    <c:out value="${info.sname}"/>
                                </td>
                            </tr>
                            <tr>

                                <td>
                                    Отчество:
                                </td>
                                <td>
                                    <c:out value="${info.tname}"/>
                                </td>
                            </tr>

                            <tr>

                                <td>
                                    Группа:
                                </td>
                                <td>
                                    <c:out value="${infogr}"/>
                                </td>
                            </tr>
                            <tr>

                            <tr>

                                <td>
                                    Рейтинг:
                                </td>
                                <td>
                                    <c:out value="${info.rate}"/>
                                </td>
                            </tr>
                            <tr>

                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">







                    </td>
                </tr>
            </table>

            <br>

            Одногруппники:
            <br>
            <br>
            <table border="2">
                <tr>
                    <td>
                        <table>

                            <c:forEach items="${groupmates}" var="gr">
                                <tr>

                                    <td>
                                        <img height="40"
                                             src="<c:out value="${root}"/>/userimg/<c:out value="${gr[3]}"/>" alt="">
                                    </td>
                                    <td>
                                        <a href="user?id=<c:out value="${gr[0]}"/>">
                                            <c:out value="${gr[1]}"/>
                                            <br>
                                            <c:out value="${gr[2]}"/>
                                        </a>

                                    </td>
                                </tr>
                            </c:forEach>
                        </table>
                    </td>
                    <td align="center" valign="top" width="400">
                         <table>
                           <tr>
                               <form method="POST" name="validation_form"
                          action="addcomment"

                          commandName="person"
                            >
                                   <input class="text important" type="text" name="comment">
                                   <input type="submit">
                                   </form>

                           </tr>
                              <c:forEach items="${com}" var="com">
                                <tr>

                                    <td>
                                      <a href="user?id=<c:out value="${com[2]}"/>">
                                        <img height="40"
                                             src="<c:out value="${root}"/>/userimg/<c:out value="${com[2]}"/>.jpg" alt="">
                                       </a>
                                    </td>
                                    <td>

                                            <c:out value="${com[1]}"/>


                                       <HR WIDTH="80%" SIZE="3">
                                    </td>
                                </tr>

                            </c:forEach>
                          </table>
                        стена
                    </td>
                </tr>
            </table>


        </td>
    </tr>

    <tr>
        <td colspan="11">

            <%@include file="/WEB-INF/inc/footer.jsp" %>
        </td>
    </tr>

</table>
<br>


</body>
</html>